package factorycase.simplefactory;

/**
 * @Description:工厂模式 简单模式
 * @Author: csh
 * @CreateDate: 2018/8/20$ 13:55$
 * @Version: 1.0
 */
public class Magnate {

    public static void main(String[] args) {
        try {
            //告诉司机我今天坐奔驰
            Car car = Driver.driverCar("benz");
            //下命令开车
            car.drive();
        }catch (Exception e){
            e.printStackTrace();
        }

    }
}
